/*
 * Copyright (c) Huawei Device Co., Ltd. 2023. All rights reserved.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#ifndef SERVICE_STUB_H
#define SERVICE_STUB_H

#include "iremote_stub.h"
#include "isecure_element_service.h"

namespace OHOS {
namespace SE {
namespace OMAPI {

class ServiceStub : public OHOS::IRemoteStub<ISecureElementService> {
public:
    int OnRemoteRequest(uint32_t code,                         /* [in] */
                        OHOS::MessageParcel& data,             /* [in] */
                        OHOS::MessageParcel& reply,            /* [out] */
                        OHOS::MessageOption& option) override; /* [in] */

    virtual ~ServiceStub() {}

private:
    int HandleGetReaders(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
    int HandleGetReader(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
    int HandleGetReaderInterface(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
    int HandleIsNfcEventAllowed(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
    int HandleShutdown(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
    int HandleRegisterCallerListener(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
};
}  // namespace OMAPI
}  // namespace SE
}  // namespace OHOS
#endif // !SERVICE_STUB_H